﻿using System;
using System.Net;
using System.Linq;
using System.Xml.Linq;

namespace RFW.Weather.WeatherFlash
{
	public class Temperature
	{
		public decimal Degrees { get; internal set; }
		public decimal Rate { get; internal set; }
		public HighLow High { get; internal set; }
		public HighLow Low { get; internal set; }
	
		public decimal Dewpoint { get; internal set; }
		public decimal DewpointRate { get; internal set; }
		
		public decimal HeatIndex { get; internal set; }
		public decimal HeatIndexRate { get; internal set; }
		public HighLow HeatIndexHigh { get; internal set; }
		public HighLow HeatIndexLow { get; internal set; }
		
		public decimal WindChill { get; internal set; }
		public decimal WindChillRate { get; internal set; }
		public HighLow WindChillHigh { get; internal set; }
		public HighLow WindChillLow { get; internal set; }
		
		public decimal Evaportranspiration { get; internal set; }
		public decimal EvaportranspirationRate { get; internal set; }


		public override string ToString()
		{
			return string.Format("{0:N2} {1}", this.Degrees, this.Rate < 0 ? "Falling" : "Rising");
		}
	}
}
